package com.tj.demo.codesnip.designoatten.stategy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @ClassName: Comparator
 * @Author: TanJun
 * @Date: 2021/5/25 0:47
 * @Description:
 * @Version: 1.0
 * @Copyright:
 */
@FunctionalInterface
public interface Comparator<T> {
    static Logger logger = LoggerFactory.getLogger(Comparator.class);
    int compara(T o1, T o2);

    default public void test(){
        logger.info("测试代码,{}");
    }
}
